<template>
  <div class="box">
     <h3>{{title}}</h3>
     <slot name="main">我是插槽默认值</slot>
     <slot name="link">我是默认显示的链接</slot>
  </div>
</template>

<script>
export default {
    name:'Category',
    props:['title']
}
</script>

<style scoped>
.box{
    width:300px;
    height:400px;
    background: skyblue;

}

.box h3{
    height:40px;
    line-height: 40px;
    background: yellowgreen;
    text-align: center;
}
</style>